﻿
@{
    ViewBag.Title = "机关管理人员测评";
    Layout = "~/Views/Shared/_EvalLayout.cshtml";
}

@model List<WebApp.ViewModels.Evaluate.OfficeDeptModel>

<div class="jjdy_box w1320">
    <div class="jjdy_l left" style="width:100%;">
        <div class="bbs_list border">
            <div class="bbs_menu">当前位置：<a href="~/Eval/Index">大机段管理人员年度测评系统</a> &gt; @ViewBag.Title</div>
            <div class="bbscount_tit">
                <h1>@ViewBag.Title</h1>
            </div>
            <div class="bbs_count1">
                <div class="bbs_count_r" style="width:100%;">
                    <div class="bbs_count_neirong">
                        @{
                            var iloop = 0;
                        }
                        <table class="table table-bordered table-hover">
                            <thead>
                                <tr>
                                    <th>序号</th>
                                    <th>科室名称</th>
                                    <th>科室人数</th>
                                    <th></th>
                                </tr>
                            </thead>
                            <tbody>
                                @foreach (var dept in Model)
                                {
                                    <tr>
                                        <td class="text-center">
                                            @(++iloop)
                                        </td>
                                        <td class="text-center">
                                            @(dept.Deptname)
                                        </td>
                                        <td class="text-center">
                                            @(dept.MemberCount)
                                        </td>
                                        <td class="text-center">
                                            @if (dept.Status == 0)
                                            {
                                                <a href="@Href("~/")Eval/OfficeMemberDetail/@(dept.Dept_id)" class="btn btn-primary">开始测评</a>
                                            }
                                            else
                                            {
                                                <span style="line-height:35px;color:#ff6a00;">已完成测评</span>
                                                @*<button disabled="disabled" class="btn btn-default"></button>*@
                                            }
                                        </td>
                                    </tr>
                                }
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>

</div>

@section scripts{
    <script type="text/javascript">
        $(document).ready(function () {
        });
    </script>
}